package com.cssy.xxkj.logic.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.cssy.xxkj.logic.entity.LogicPurchaseDO;

/**
 * 数据访问对象接口
 * @since 2014-09-13
 */
public interface LogicPurchaseDAO extends LogicBizDAO<LogicPurchaseDO>{

    /**
     * 插入数据
     * @param logicPurchaseDO
     * @return 插入数据的主键
     */
    public String insertLogicPurchaseDO(LogicPurchaseDO logicPurchaseDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicPurchaseDO
     * @return 查出的记录数
     */
    public Integer countLogicPurchaseDOByExample(LogicPurchaseDO logicPurchaseDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicPurchaseDO
     * @return 受影响的行数
     */
    public Integer updateLogicPurchaseDO(LogicPurchaseDO logicPurchaseDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicPurchaseDO
     * @return 对象列表
     */
    public List<LogicPurchaseDO> findListByExample(LogicPurchaseDO logicPurchaseDO) throws DataAccessException;

    /**
     * 根据主键获取logicPurchaseDO
     * @param id
     * @return logicPurchaseDO
     */
    public LogicPurchaseDO findLogicPurchaseDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicPurchaseDOByPrimaryKey(String id) throws DataAccessException;

}